home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / Development / PowerD / powerd / modules.lha / modules / gadgets / datebrowser.m < prev    next >
Encoding:
Text File  |  2001-10-28  |  3.3 KB  |  82 lines

  1. /*
  2. **  $VER: datebrowser.h 44.1 (19.10.1999)
  3. **  Includes Release 44.1
  4. **
  5. **  Definitions for the datebrowser.gadget BOOPSI class
  6. **
  7. **  (C) Copyright 1987-1999 Amiga, Inc.
  8. **      All Rights Reserved
  9. */
  10. /*****************************************************************************/
  11. //MODULE 'reaction/reaction','intuition/gadgetclass'
  12. /*****************************************************************************/
  13. /* Object creation macro to ease readability of layout groups, etc.
  14.  */
  15. #ifndef DateBrowserObject
  16. #define DateBrowserObject  NewObject( DATEBROWSER_GetClass(), NIL
  17. #endif
  18. #ifndef EndDateBrowser
  19. #define EndDateBrowser     TAG_DONE)
  20. #endif
  21. /* Additional attributes defined by the datebrowser.gadget class
  22.  */
  23. #define DATEBROWSER_Dummy       (REACTION_Dummy+$61000)
  24. #define DATEBROWSER_Day         (DATEBROWSER_Dummy)
  25. /* (UWORD) OM_NEW,OM_SET,OM_UPDATE,OM_GET
  26.    * Selected/Current day of the month. Defaults to 1, which
  27.    * is the first of the current month.
  28.    */
  29. #define DATEBROWSER_Month       (DATEBROWSER_Dummy + 1)
  30. /* (UWORD) OM_NEW,OM_SET,OM_UPDATE,OM_GET
  31.    * Calendar month to display. Defaults to 1, which is January.
  32.    */
  33. #define DATEBROWSER_Year      (DATEBROWSER_Dummy + 2)
  34. /* (LONG) OM_NEW,OM_SET,OM_UPDATE,OM_GET
  35.    * Calendar year to display. Defaults to 1978, which is
  36.    * a long time ago now, back when dinosaurs walked the earth.
  37.    */
  38. #define DATEBROWSER_SelectedDays  (DATEBROWSER_Dummy + 3)
  39. /* (ULONG) OM_NEW,OM_SET,OM_UPDATE,OM_GET
  40.    * A 32 bit value, each bit represents a day of the month,
  41.    * if set, the corrisponding calendar day is selected.
  42.    * This is useful for multi-select mode to find out what
  43.    * days are selected via one packed return value.
  44.    */
  45. #define DATEBROWSER_WeekDay       (DATEBROWSER_Dummy + 4)
  46. /* (UWORD) OM_NEW,OM_SET,OM_UPDATE,OM_GET
  47.    * Returns the day of the week for the currently
  48.    * selected 'DATEBROWSER_Day'. A better solution may be
  49.    * using datebrowser's public julian date functions.
  50.    */
  51. #define DATEBROWSER_FirstWDay     (DATEBROWSER_Dummy + 5)
  52. /* (UWORD) OM_NEW,OM_SET,OM_UPDATE,OM_GET
  53.    * Returns the day of the week the first of the month
  54.    * will fall on with the julian calendar.
  55.    * Starting with 0 for Sunday, and 6 for Saterday.
  56.    */
  57. #define DATEBROWSER_NumDays       (DATEBROWSER_Dummy + 6)
  58. /* (UWORD) OM_GET
  59.    * Returns the number of days in the currently set month.
  60.    * A better solution may be using datebrowser's public
  61.    * julian date functions.
  62.    */
  63. #define DATEBROWSER_ShowTitle     (DATEBROWSER_Dummy + 7)
  64. /* (BOOL) OM_NEW,OM_SET,OM_GET
  65.    * Enables display of the week-day title bar.
  66.    * NOTE: If turned ON after layout group creation, you must be sure
  67.    * to FlushLayoutDomainCache() and RethinkLayout(), and potentially
  68.    * increase the window size to accomodate the possibly larger layout.
  69.    * Simply toggling iconify on/off, or close & open of the window
  70.    * class will achieve simular results.
  71.    * NOTE: If using a recent window.class you should use WM_RETHINK!!
  72.    */
  73. #define DATEBROWSER_MultiSelect     (DATEBROWSER_Dummy + 8)
  74. /* (BOOL) OM_NEW,OM_SET,OM_UPDATE,OM_GET
  75.    * Enables multi-selection of calendar days.
  76.    */
  77. #define DATEBROWSER_DayTitles     (DATEBROWSER_Dummy + 9)
  78. /* (STRPTR *) OM_NEW,OM_SET,OM_UPDATE
  79.    * Pointer to an array of STRPTR containing day titles.
  80.    * Defaults to non-localized internal "Mon", "Tue", etc.
  81.    */
  82.